# -*- coding: utf-8 -*-

from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()

from flask_migrate import Migrate
migrate = Migrate()

from flask_login import LoginManager
login_manager = LoginManager()

def init_extensions(app):
    # SQLAlchemy
    db.init_app(app)
    # Migrate
    migrate.init_app(app, db)
    # LoginManager
    login_manager.init_app(app)
    # login_manager.login_view = 'login'